package com.jiezhuo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author com.jiezhuo
 * @since 2022-10-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="IotNodeInfo对象", description="")
public class IotNodeInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String name;

    private String deviceCode;

    @ApiModelProperty(value = "节点类型:数据节点,视频、门禁")
    private Integer iotNodeType;

    @ApiModelProperty(value = "协议类型")
    private String iotProtocalCategory;

    private Integer seq;

    private Integer sceneId;

    private Integer deleteFlag;

    @ApiModelProperty(value = "节点状态")
    private Integer iotNodeStatus;

    @ApiModelProperty(value = "模板id")
    private Integer templateId;

    private Integer imgId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date maintenanceTime;

    @ApiModelProperty(value = "经纬度")
    @TableField("lonLat")
    private String lonlat;

    @ApiModelProperty(value = "配置信息")
    private String infos;

    @ApiModelProperty(value = "上传周期")
    private Integer frequency;

    private Integer aid;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date atime;

    private Integer mid;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date mtime;

}
